package com.aaa.book_mall.controller;

import com.aaa.book_mall.dao.DetailDao;
import com.aaa.book_mall.dao.impl.DetailDaoImpl;
import com.aaa.book_mall.util.LayTab;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * fileName:入库详情表
 * description:
 * author:付亚星
 * createTime:2021/1/27 16:24
 * version:1.0.0
 */
@RestController
@RequestMapping("/rukudetail")
public class DetailController {
    private DetailDao detailDao = new DetailDaoImpl();

    @RequestMapping("/showInfoBOUT")
    public LayTab showInfoBOUT(String audit_number){
        System.out.println("编号："+audit_number);
//        查询对应的详情表
        List<Map<String, Object>> maps = detailDao.showInfoDetail(audit_number);
        System.out.println(maps);
        LayTab layTab = new LayTab(maps.size(), maps);
        return layTab;
    }

}
